﻿@model KidsGest.Models.EditModel

@{
    ViewBag.Title = "KidsGest :: Alteração de Dados";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Alterar Dados</legend>
        <br></br>
        <div class="editor-label">
            @Html.LabelFor(model => model.Utilizador) : <strong>@Html.Label(User.Identity.Name)</strong>
            <br></br>
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.Email) @Html.EditorFor(model => model.Email)  @Html.ValidationMessageFor(model => model.Email)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar ao Ínicio", "Index", "Home")
</div>
